.emptyDataWrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.mailStatusIcon {
    display: inline-block;
    vertical-align: middle;
    width: 6px;
    height: 6px;
    border: 1px solid #8c8c8c;
    border-radius: 50%;
    margin-right: 8px;
}

.mailStatusCheck {
    display: inline-block;
    vertical-align: middle;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    color: #8c8c8c;

    svg {
        width: 100%;
        height: 100%;
    }
}

.unReadIco {
    background-color: #ffa808;
    border-color: #ffa808;
}

.loadingwrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

// 邮箱列表样式
.mailingListWrap {
    height: calc(100vh - 320px);
    overflow: auto;

    .extraDate {
        position: absolute;
        right: 24px;
        top: 16px;
        color: #595959;
        font-size: 12px;
        z-index: 100;
        padding-left: 5px;
        cursor: pointer;
    }

    .extraDelete {
        transform: translateX(-5px);
        font-size: 16px;
        color: #8c8c8c;
        display: none;
        cursor: pointer;

        &:hover {
            color: #ff9e00;
        }
    }

    .listItem {
        &:hover .extraDelete {
            display: block;
        }
    }

    .unread {
        :global {
            .ant-list-item-meta-title,
            .ant-list-item-meta-description {
                font-weight: 500;
            }
        }
    }

    .itemActive {
        background-color: #fafafa;
    }

    :global {
        .ant-list-item {
            position: relative;
            padding: 0;
            transition: background-color 0.3s;

            &:hover {
                background-color: #fafafa;
            }
        }

        .ant-list-item-meta {
            align-items: center;
            width: 100%;
            overflow-x: hidden;
            cursor: pointer;
        }

        .ant-list-item-meta-content {
            height: 73px;
            width: 100%;
            overflow: hidden;
            padding: 13px 0;
            border-bottom: 1px solid #f0f0f0;
        }

        .ant-list-item-meta-title {
            overflow: hidden;
            color: #2b2b2b;
            font-size: 16px;
            height: 22px;
            line-height: 22px;
            width: 68%;
            text-overflow: ellipsis;
            word-break: break-all;
            white-space: nowrap;
            font-weight: 400;
        }

        .ant-list-item-meta-description {
            width: 272px;
            padding-right: 24px;
            overflow: hidden;
            font-size: 14px;
            color: #313131;
            height: 20px;
            line-height: 20px;
            text-overflow: ellipsis;
            word-break: break-all;
            white-space: nowrap;
        }
    }
}

// 邮件内容样式
.mailContentWrap {
    height: 100%;

    .mailTitleBar {
        height: 73px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 24px;
        border-bottom: 1px solid #f0f0f0;

        .mailTitle {
            flex: 1;
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 0;
        }

        .mailBtn {
            padding: 2px;
            font-size: 20px;
            margin-left: 18px;
            cursor: pointer;
            transition: all 0.3s;
            border-radius: 2px;

            &:hover {
                color: rgba(0, 0, 0, 0.85);
                background-color: #f0f0f0;
            }
        }
    }

    .mailContentBox {
        margin-top: 16px;

        .mailContentUserBar {
            display: flex;
            align-items: flex-start;
            padding-bottom: 22px;
            border-bottom: 1px solid #f0f0f0;
            margin-bottom: 16px;

            ul {
                max-width: 100%;
                margin-left: 16px;
                flex: 1;

                li {
                    font-size: 12px;
                    color: #979797;

                    &:first-child {
                        font-weight: 600;
                        color: #2b2b2b;
                        font-size: 16px;
                        margin-bottom: 6px;
                    }
                }
            }

            .date {
                font-size: 12px;
                color: #595959;
            }
        }

        .content {
            margin: 24px 56px;
            color: #262626;

            ol {
                list-style: decimal;
                padding-left: 0;
            }

            ul {
                list-style: disc;
                padding-left: 0;
            }
        }

        .attachments {
            font-size: 12px;
            color: #484848;
            border-top: 1px solid #f0f0f0;
            padding-top: 16px;
        }
    }

    :global {
        .ant-spin-nested-loading {
            align-items: center !important;
        }

        .ant-typography {
            color: rgba(0, 0, 0, 0.85);
        }
    }
}

//附件组件样式
.attachmentWrap {
    width: 100%;

    &::after {
        content: ' ';
        height: 0;
        visibility: hidden;
        display: block;
        clear: both;
    }

    .box {
        transition: all 0.3s;
        float: left;
        padding: 0 14px 0 12px;
        width: 224px;
        height: 56px;
        margin: 0 16px 16px 0;
        overflow: hidden;
        background-color: #f5f5f5;
        display: flex;
        align-items: center;

        .iconType {
            color: #ffa808;
            margin-right: 10px;
            font-size: 24px;
        }

        .btn {
            font-size: 14px;
            cursor: pointer;
            color: rgba(0, 0, 0, 0.85);
            border-radius: 2px;
        }

        ul {
            flex: 1;

            li {
                font-size: 12px;
                color: #000;

                &:first-child {
                    width: 145px;
                    overflow: hidden;
                    height: 16px;
                    line-height: 16px;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                    word-break: break-all;
                }

                &:last-child {
                    color: #8c8c8c;
                }
            }
        }
    }
}

// 邮件列表顶部切换条
.mailSwitchBarWrap {
    margin: 16px 16px 12px 16px;
    background: #fff;
    border-radius: 4px;
    padding: 16px;
    display: flex;

    .list {
        flex: 1;

        li {
            cursor: pointer;
            display: flex;
            height: 40px;
            line-height: 40px;
            border: 1px solid rgba(0, 0, 0, 0.08);
            padding: 0 12px;
            width: 200px;
            overflow: hidden;
            float: left;
            font-weight: 400;
            color: rgba(0, 0, 0, 0.65);
            border-radius: 2px;
            align-items: center;
            margin-right: 16px;
            user-select: none;

            span {
                display: inline-block;
                vertical-align: middle;
                overflow: hidden;
            }
        }

        .current {
            color: #fff;
            background-color: #ffa808;
            border-color: #ffa808;
        }
    }

    .btn {
        display: flex;
        align-items: center;
        width: 32px;
    }
}
